package com.cc.service;

import com.cc.entity.FileEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cc.util.RedisUtil;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 文件表 服务类
 * </p>
 *
 * @author CHENCHEN
 * @since 2023-03-21
 */
public interface FileService extends IService<FileEntity> {

    String uploadFileBySlices(MultipartFile file, Integer sliceNo, Integer totalSliceNo, String fileMd5)throws Exception ;

    String uploadFileBySlices(MultipartFile[] files, String fileMd5)throws Exception ;

    String convertMultiFileBySlices(MultipartFile multipartFile) throws Exception;

    String simpUploadFile(MultipartFile file) throws Exception;

    public void deleteFilePath(String filePath) throws Exception;
}
